﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PlanB.ShareDove.ConferenceOrganization.BusinessLayer.DataLayerInterface.Entities;

namespace PlanB.ShareDove.ConferenceOrganization.Portal.WebParts.MVP
{
    /// <summary>
    /// Model for DisplaySession Web Part
    /// </summary>
    public class DisplaySessionsModel
    {
        /// <summary>
        /// Cities data which contain all information about cities
        /// </summary>
        public IEnumerable<ConferenceSession> SessionData { get; set; }

        /// <summary>
        /// Number of cities the view holds
        /// </summary>
        public int NumberOfSessions
        {
            get
            {
                return SessionData == null ? 0 : SessionData.Count();
            }
        }
    }
}
